package com.jqb.webservice.service;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

import com.jqb.webservice.vo.User;

//SEI(Service Endpoint Interface) 服务提供的接口
//1
@WebService
public interface MathService {
	//默认：<return><arg0>1</arg0>2<arg1></arg1></return>
	//指明：<addResult><a>1</a><b>2</b></addResult>
	//不指明@WebResult的name属性默认为return
	@WebResult(name = "addResult")
	//不指明@WebParam的name属性默认为arg0,arg1...
	public int add(@WebParam(name = "a") int a, @WebParam(name = "b") int b);

	@WebResult(name = "minusResult")
	public int minus(@WebParam(name = "a") int a, @WebParam(name = "b") int b);

	@WebResult(name = "loginUser")
	public User login(@WebParam(name = "username") String username, @WebParam(name = "password") String password);
}
